package com.xiangxiao.rpan.storage.enums;

import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

/**
 * @auther xiangxiao
 * @email 573768011@qq.com
 * @data 2023/6/30 17:24
 */
@Getter
public enum SearchModeEnum {

  /**
   * 仅搜索缓存
   */
  SEARCH_CACHE_MODE("SEARCH_CACHE"),

  /**
   * 搜索全部
   */
  SEARCH_ALL_MODE("SEARCH_ALL");

  private String value;

  @JsonValue
  public String getSearchModeEnum() {
    return this.value.toUpperCase();
  }

  SearchModeEnum(String val) {
    this.value = val.toUpperCase();
  }
}